<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>更新人员信息</title>
		<link rel="stylesheet" href="css/reset.css" />
		<link rel="stylesheet" href="css/platform.css" />
		<link rel="stylesheet" href="js/dateTime/jquery-ui.min.css" />
	</head>
	<body>
	    <div class="wrapper">
            <div class="u-multiform">
	            <div class="column">
                    <div class="cell">
                        <label>工号：</label>
                        <div class="cnt-box">
                            <input class="u-ipt" type="text" id="staffId" placeholder="输入需要变更的工号" >
                        </div>
                    </div>
                </div>
                <div class="column">
                    <div class="cell">
                        <label></label>
                        <div class="cnt-box">
                            <button class="u-btn small" id="updateStoreMan">更新人员信息</button>
                        </div>
                    </div>
                </div>
                <div class="column">
                    <div class="cell">
                        <label>工号：</label>
                        <div class="cnt-box">
                            <input class="u-ipt" type="text" id="delStaffId" placeholder="输入需要删除的工号" >
                        </div>
                    </div>
                </div>
                <div class="column">
                    <div class="cell">
                        <label></label>
                        <div class="cnt-box">
                            <button class="u-btn small" id="delStoreMan">删除人员信息</button>
                        </div>
                    </div>
                </div>			
            </div>
	    </div>
	    
        <script type="text/javascript" src="js/jquery.min.js" ></script>
		<script type="text/javascript" src="js/DataInterface/DataInterface.js" ></script>
		<script type="text/javascript">
			$('#updateStoreMan').click(function(){
				$.ajax({
	        		url:DI.updateStoreManInfo,
	        		type:'POST',
	        		data:{staffId:$('#staffId').val()},
	        		success:function(data){
	        			if (data == '1') {
	        				alert('更新成功');
	        			} else {
	        				alert('更新失败');
	        			}
	        		}
	        	});
			});
			$('#delStoreMan').click(function(){
				$.ajax({
	        		url:DI.delStoreManInfo,
	        		type:'POST',
	        		data:{staffId:$('#delStaffId').val()},
	        		success:function(data){
	        			if (data == '1') {
	        				alert('删除成功');
	        			} else {
	        				alert('删除失败');
	        			}
	        		}
	        	});
			});
        	
        </script>
	</body>
</html>
